// Created by lifei on 2020/7/21--9:19.
<template>
    <div class="card-box">
        <div class="card-title">项目信息</div>
        <el-form ref="form" :model="form" class="form-wrap" size="small" :rules="rules">
            <el-form-item label="项目编号">
                <el-input v-model="input" placeholder="请输入项目编号"></el-input>
            </el-form-item>
            <el-form-item label="项目名称">
                <el-input v-model="input" placeholder="请输入项目名称"></el-input>
            </el-form-item>
            <el-form-item label="项目面积">
                <el-input v-model="input" placeholder="请输入项目面积">
                    <template slot="append">m²</template>
                </el-input>
            </el-form-item>
            <el-form-item label="项目类型">
                <el-select v-model="value" placeholder="请选择项目类型">
                    <el-option
                        v-for="item in lists"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="项目街道">
                <el-select v-model="value" placeholder="请选择项目街道">
                    <el-option
                        v-for="item in lists"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="项目地址">
                <el-input v-model="input" placeholder="请输入项目地址"></el-input>
            </el-form-item>
            <el-form-item label="是否为更新项目">
                <el-radio-group v-model="input">
                    <el-radio label="1">是</el-radio>
                    <el-radio label="0">否</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="当前阶段">
                <el-select v-model="value" placeholder="请选择当前阶段">
                    <el-option
                        v-for="item in lists"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>

        </el-form>
    </div>
</template>

<script>
    export default {
        name: "base-info",
        data() {
            return {
                input: '',
                value: '',
                area: [],
                form: {},
                lists: [{
                    value: '选项1',
                    label: '黄金糕'
                }, {
                    value: '选项2',
                    label: '双皮奶'
                }, {
                    value: '选项3',
                    label: '蚵仔煎'
                }, {
                    value: '选项4',
                    label: '龙须面'
                }, {
                    value: '选项5',
                    label: '北京烤鸭'
                }],
                rules: {
                    number: [
                        {
                            required: true, message: '请输入物业编号'
                        }
                    ]
                }
            }
        },
        mounted() {
        },
        methods: {
            changeArea(data) {
                console.log(data)
            }
        }
    }
</script>

<style scoped lang='scss'>
    

    @include formWrap();

</style>
